package com.fz.entity;

import com.fz.core.BaseEntity;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;

/**
 * <p>
 * 存储水电费信息
 * </p>
 *
 * @author hyr
 * @since 2025-06-18
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Bill extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 修改时间
     */
    private LocalDateTime updateTime;

    /**
     * 用户ID（外键）
     */
    private Long userId;

    /**
     * 类型（水费/电费）
     */
    private String type;

    /**
     * 金额
     */
    private BigDecimal amount;

    /**
     * 逻辑删除（1=删除）
     */
    private Integer isDeleted;

public Bill(Long userId,String type,BigDecimal count){
    this.userId=userId;
    this.type=type;
    this.amount=count;

}
    public Bill(Long id,Long userId,String type,BigDecimal count){
        super(id);
        this.userId=userId;
        this.type=type;
        this.amount=count;

    }
}
